<extend name="index::index" />
<block name="title"><title>user</title></block>
<block name="nav">
	<ul class="list-unstyled list">
		<empty name="login">
			<li>
			<a href="{:U('Index/login')}" class="anchorLink"><i class="icon-road scolor"></i>登录</a>
			</li>
			<li>
			<a href="{:U('Index/reg')}" class="anchorLink"><i class="icon-road scolor"></i>注册</a>
			</li>
			<else />
			<li>
			<a href="{:U('User/index',['id'=>$login['id']])}" style="text-transform:none;"><i class="icon-road scolor"></i><span style="color:#fff;">欢迎{$login['name']}</span></a>
			</li>
			<li>
			<a href="{:U('Index/loginout')}" class="anchorLink"><i class="icon-road scolor"></i>退出</a>
			</li>
		</empty>
		<li><a href="{:U('Index/index')}" class="anchorLink"><i class="icon-home scolor"></i>主页</a></li>
		<li><a href="{:U('Order/order_info')}" class="anchorLink"><i class="icon-user scolor"></i>订单详情</a></li>
		<li><a href="{:U('User/reset')}" class="anchorLink"><i class="icon-retweet scolor"></i>修改密码</a></li>
	</ul>
</block>
<block name="addver">
</block>
<block name="team">
</block>
<block name="main">
	<div class="team"><h3>评论管理</h3></div>
	<div class="bor hidden-xs"></div>
	<div style="min-height:560px; ">
		<table class="table" border="1" cellspacing="0" cellpadding="5" align="center">
	        <tr bgcolor="#ccc">
	          <th>订单号</th>
	          <th>收货地址</th>
	          <th>是否付款</th>
	          <th>是否发货</th>
	          <th>收货人</th>
	        </tr>
	        <tr>
	        	<td>{$list['olo']}</td>
         		<td>{$list['address']}</td>
         		<td>
	         		<if condition="$list['is_fu'] eq 1" >
						已付款
	         		<else />
						未付款
	         		</if>
	         	</td>
	         	<td>
	         		<if condition="$list['is_show'] eq 0">
	         			未发货
	         		<elseif condition="$list['is_show'] eq 1"/>
	         			已发货
	         		<elseif condition="$list['is_show'] eq 2"/>
	         			已签收
	         		</if>	
	         	</td>
	         	<td>{$list['name']}</td>
	        </tr>
	        <tr bgcolor="#ccc">
	          <th>商品</th>
	          <th>购买数量</th>
	          <th>商品价格</th>
	          <th>total</th>
	          <th>商品描述</th>
	        </tr>
	        <tr>
	        	<td style="text-align:center;">{$data['name']} &nbsp;&nbsp;&nbsp;<img src="__ROOT__{$dat['name']}"/></td>
	        	<td>{$list['num']}</td>
	        	<td>￥:{$data['price']}</td>
	        	<td>￥:{$list['num']*$data['price']}</td>
	        	<td>{$data['describe']}</td>
	        </tr>
		</table>
		<notempty name="li">
			<foreach name="li" item="valu" >
			<div><h3>评论:{$valu['text']} 回复:{$valu['rtext']}</h3></div>
			</foreach>
			<div><h3>评论:</h3></div>
			<form action="{:U('Arguments/doarg')}" method="post">
				<textarea name="arg" style="width:500px;min-height:300px;"></textarea>
				<div><h3><input type="submit" value="提交"/></h3></div>
			</form>	
		<else />
		<div><h3>评论:</h3></div>
			<form action="{:U('Arguments/doarg')}" method="post">
				<textarea name="arg" style="width:500px;min-height:300px;"></textarea>
				<div><h3><input type="submit" value="提交"/></h3></div>
			</form>
			</notempty>
	</div>
</block>